Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix(useForm): immdiate validate doesn't work #4646

Merged
merged 1 commit into from
Sep 15, 2021
Merged

Fix(useForm): immdiate validate doesn't work #4646

merged 1 commit into from
Sep 15, 2021

Conversation

ylc395
Copy link
Contributor

@ylc395 ylc395 commented Sep 12, 2021

First of all, thank you for your contribution! 😄

New feature please send pull request to feature branch, and rest to master branch. Pull request will be merged after one of collaborators approve. Please makes sure that these form are filled before submitting your pull request, thank you!

[中文版模板 / Chinese template]

This is a ...

  • New feature
  • Bug fix
  • Site / document update
  • Component style update
  • TypeScript definition update
  • Refactoring
  • Code style optimization
  • Branch merge
  • Other (about what?)

What's the background?

useForm{immediate: true}不起作用,原因在于初次调用modelFn时, names总是为空。

@ylc395
Copy link
Contributor Author

ylc395 commented Sep 13, 2021

还有个场景需要补充:目前只校验 model 中路径存在的属性。有时,即使 model 中不存在某路径的属性,我们也想触发校验,来让 validateInfos上有校验结果。这个场景如何实现比较好?我有个大致实现,可见 #4647

@tangjinzhou tangjinzhou merged commit 27b258c into vueComponent:next Sep 15, 2021
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants